<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>VitePress | VitePress</title>
    <meta name="description" content="A VitePress site">
    <link rel="stylesheet" href="/doc/assets/style.a6eab38f.css">
    <link rel="modulepreload" href="/doc/assets/app.037114a6.js">
    <link rel="modulepreload" href="/doc/assets/cli.md.7d1dba15.lean.js">
    
    <script id="check-dark-light">(()=>{const e=localStorage.getItem("vitepress-theme-appearance"),a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
  </head>
  <body>
    <div id="app"><div class="Layout" data-v-800d218e><!--[--><!--]--><!--[--><span tabindex="-1" data-v-50beef6d></span><a href="#VPContent" class="VPSkipLink visually-hidden" data-v-50beef6d> Skip to content </a><!--]--><!----><header class="VPNav no-sidebar" data-v-800d218e data-v-612dfc2d><div class="VPNavBar" data-v-612dfc2d data-v-e5657667><div class="container" data-v-e5657667><div class="VPNavBarTitle" data-v-e5657667 data-v-b0835459><a class="title" href="/doc/" data-v-b0835459><!--[--><!--]--><!----><!--[-->xunserver<!--]--><!--[--><!--]--></a></div><div class="content" data-v-e5657667><!--[--><!--]--><!----><nav aria-labelledby="main-nav-aria-label" class="VPNavBarMenu menu" data-v-e5657667 data-v-b14180d2><span id="main-nav-aria-label" class="visually-hidden" data-v-b14180d2>Main Navigation</span><!--[--><!--[--><a class="VPLink link VPNavBarMenuLink active" href="/doc/cli.html" data-v-b14180d2 data-v-68a8c424 data-v-9f5813a1><!--[-->@xunserver/cli<!--]--><!----></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/doc/style.html" data-v-b14180d2 data-v-68a8c424 data-v-9f5813a1><!--[-->@xunserver/style<!--]--><!----></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/doc/vui.html" data-v-b14180d2 data-v-68a8c424 data-v-9f5813a1><!--[-->@xunserver/vui<!--]--><!----></a><!--]--><!--[--><div class="VPFlyout VPNavBarMenuGroup" data-v-b14180d2 data-v-d3726854><button type="button" class="button" aria-haspopup="true" aria-expanded="false" data-v-d3726854><span class="text" data-v-d3726854><!----> lint <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="text-icon" data-v-d3726854><path d="M12,16c-0.3,0-0.5-0.1-0.7-0.3l-6-6c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l5.3,5.3l5.3-5.3c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-6,6C12.5,15.9,12.3,16,12,16z"></path></svg></span></button><div class="menu" data-v-d3726854><div class="VPMenu" data-v-d3726854 data-v-401cc61e><div class="items" data-v-401cc61e><!--[--><!--[--><div class="VPMenuLink" data-v-401cc61e data-v-33af0929><a class="VPLink link" href="/doc/eslint-config.html" data-v-33af0929 data-v-9f5813a1><!--[-->eslint<!--]--><!----></a></div><!--]--><!--[--><div class="VPMenuLink" data-v-401cc61e data-v-33af0929><a class="VPLink link" href="/doc/stylelint-config.html" data-v-33af0929 data-v-9f5813a1><!--[-->stylelint<!--]--><!----></a></div><!--]--><!--[--><div class="VPMenuLink" data-v-401cc61e data-v-33af0929><a class="VPLink link" href="/doc/prettier-config.html" data-v-33af0929 data-v-9f5813a1><!--[-->prettier<!--]--><!----></a></div><!--]--><!--[--><div class="VPMenuLink" data-v-401cc61e data-v-33af0929><a class="VPLink link" href="/doc/commitlint-config.html" data-v-33af0929 data-v-9f5813a1><!--[-->commitlint<!--]--><!----></a></div><!--]--><!--[--><div class="VPMenuLink" data-v-401cc61e data-v-33af0929><a class="VPLink link" href="/doc/vscode-config.html" data-v-33af0929 data-v-9f5813a1><!--[-->vscode<!--]--><!----></a></div><!--]--><!--]--></div><!--[--><!--]--></div></div></div><!--]--><!--[--><div class="VPFlyout VPNavBarMenuGroup" data-v-b14180d2 data-v-d3726854><button type="button" class="button" aria-haspopup="true" aria-expanded="false" data-v-d3726854><span class="text" data-v-d3726854><!----> babel <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="text-icon" data-v-d3726854><path d="M12,16c-0.3,0-0.5-0.1-0.7-0.3l-6-6c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l5.3,5.3l5.3-5.3c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-6,6C12.5,15.9,12.3,16,12,16z"></path></svg></span></button><div class="menu" data-v-d3726854><div class="VPMenu" data-v-d3726854 data-v-401cc61e><div class="items" data-v-401cc61e><!--[--><!--[--><div class="VPMenuLink" data-v-401cc61e data-v-33af0929><a class="VPLink link" href="/doc/babel-config.html" data-v-33af0929 data-v-9f5813a1><!--[-->babel<!--]--><!----></a></div><!--]--><!--[--><div class="VPMenuLink" data-v-401cc61e data-v-33af0929><a class="VPLink link" href="/doc/postcss-config.html" data-v-33af0929 data-v-9f5813a1><!--[-->postcss<!--]--><!----></a></div><!--]--><!--]--></div><!--[--><!--]--></div></div></div><!--]--><!--]--></nav><!----><div class="VPNavBarAppearance appearance" data-v-e5657667 data-v-94fffdb1><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" aria-label="toggle dark mode" data-v-94fffdb1 data-v-cac98b92 data-v-4f5f0a58><span class="check" data-v-4f5f0a58><span class="icon" data-v-4f5f0a58><!--[--><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="sun" data-v-cac98b92><path d="M12,18c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S15.3,18,12,18zM12,8c-2.2,0-4,1.8-4,4c0,2.2,1.8,4,4,4c2.2,0,4-1.8,4-4C16,9.8,14.2,8,12,8z"></path><path d="M12,4c-0.6,0-1-0.4-1-1V1c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,3.6,12.6,4,12,4z"></path><path d="M12,24c-0.6,0-1-0.4-1-1v-2c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,23.6,12.6,24,12,24z"></path><path d="M5.6,6.6c-0.3,0-0.5-0.1-0.7-0.3L3.5,4.9c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C6.2,6.5,5.9,6.6,5.6,6.6z"></path><path d="M19.8,20.8c-0.3,0-0.5-0.1-0.7-0.3l-1.4-1.4c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C20.3,20.7,20,20.8,19.8,20.8z"></path><path d="M3,13H1c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S3.6,13,3,13z"></path><path d="M23,13h-2c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S23.6,13,23,13z"></path><path d="M4.2,20.8c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C4.7,20.7,4.5,20.8,4.2,20.8z"></path><path d="M18.4,6.6c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C18.9,6.5,18.6,6.6,18.4,6.6z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="moon" data-v-cac98b92><path d="M12.1,22c-0.3,0-0.6,0-0.9,0c-5.5-0.5-9.5-5.4-9-10.9c0.4-4.8,4.2-8.6,9-9c0.4,0,0.8,0.2,1,0.5c0.2,0.3,0.2,0.8-0.1,1.1c-2,2.7-1.4,6.4,1.3,8.4c2.1,1.6,5,1.6,7.1,0c0.3-0.2,0.7-0.3,1.1-0.1c0.3,0.2,0.5,0.6,0.5,1c-0.2,2.7-1.5,5.1-3.6,6.8C16.6,21.2,14.4,22,12.1,22zM9.3,4.4c-2.9,1-5,3.6-5.2,6.8c-0.4,4.4,2.8,8.3,7.2,8.7c2.1,0.2,4.2-0.4,5.8-1.8c1.1-0.9,1.9-2.1,2.4-3.4c-2.5,0.9-5.3,0.5-7.5-1.1C9.2,11.4,8.1,7.7,9.3,4.4z"></path></svg><!--]--></span></span></button></div><!----><div class="VPFlyout VPNavBarExtra extra" data-v-e5657667 data-v-b0e6e622 data-v-d3726854><button type="button" class="button" aria-haspopup="true" aria-expanded="false" aria-label="extra navigation" data-v-d3726854><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="icon" data-v-d3726854><circle cx="12" cy="12" r="2"></circle><circle cx="19" cy="12" r="2"></circle><circle cx="5" cy="12" r="2"></circle></svg></button><div class="menu" data-v-d3726854><div class="VPMenu" data-v-d3726854 data-v-401cc61e><!----><!--[--><!--[--><!----><div class="group" data-v-b0e6e622><div class="item appearance" data-v-b0e6e622><p class="label" data-v-b0e6e622>Appearance</p><div class="appearance-action" data-v-b0e6e622><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" aria-label="toggle dark mode" data-v-b0e6e622 data-v-cac98b92 data-v-4f5f0a58><span class="check" data-v-4f5f0a58><span class="icon" data-v-4f5f0a58><!--[--><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="sun" data-v-cac98b92><path d="M12,18c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S15.3,18,12,18zM12,8c-2.2,0-4,1.8-4,4c0,2.2,1.8,4,4,4c2.2,0,4-1.8,4-4C16,9.8,14.2,8,12,8z"></path><path d="M12,4c-0.6,0-1-0.4-1-1V1c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,3.6,12.6,4,12,4z"></path><path d="M12,24c-0.6,0-1-0.4-1-1v-2c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,23.6,12.6,24,12,24z"></path><path d="M5.6,6.6c-0.3,0-0.5-0.1-0.7-0.3L3.5,4.9c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C6.2,6.5,5.9,6.6,5.6,6.6z"></path><path d="M19.8,20.8c-0.3,0-0.5-0.1-0.7-0.3l-1.4-1.4c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C20.3,20.7,20,20.8,19.8,20.8z"></path><path d="M3,13H1c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S3.6,13,3,13z"></path><path d="M23,13h-2c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S23.6,13,23,13z"></path><path d="M4.2,20.8c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C4.7,20.7,4.5,20.8,4.2,20.8z"></path><path d="M18.4,6.6c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C18.9,6.5,18.6,6.6,18.4,6.6z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="moon" data-v-cac98b92><path d="M12.1,22c-0.3,0-0.6,0-0.9,0c-5.5-0.5-9.5-5.4-9-10.9c0.4-4.8,4.2-8.6,9-9c0.4,0,0.8,0.2,1,0.5c0.2,0.3,0.2,0.8-0.1,1.1c-2,2.7-1.4,6.4,1.3,8.4c2.1,1.6,5,1.6,7.1,0c0.3-0.2,0.7-0.3,1.1-0.1c0.3,0.2,0.5,0.6,0.5,1c-0.2,2.7-1.5,5.1-3.6,6.8C16.6,21.2,14.4,22,12.1,22zM9.3,4.4c-2.9,1-5,3.6-5.2,6.8c-0.4,4.4,2.8,8.3,7.2,8.7c2.1,0.2,4.2-0.4,5.8-1.8c1.1-0.9,1.9-2.1,2.4-3.4c-2.5,0.9-5.3,0.5-7.5-1.1C9.2,11.4,8.1,7.7,9.3,4.4z"></path></svg><!--]--></span></span></button></div></div></div><!----><!--]--><!--]--></div></div></div><!--[--><!--]--><button type="button" class="VPNavBarHamburger hamburger" aria-label="mobile navigation" aria-expanded="false" aria-controls="VPNavScreen" data-v-e5657667 data-v-51c26bd4><span class="container" data-v-51c26bd4><span class="top" data-v-51c26bd4></span><span class="middle" data-v-51c26bd4></span><span class="bottom" data-v-51c26bd4></span></span></button></div></div></div><!----></header><!----><!----><div class="VPContent" id="VPContent" data-v-800d218e data-v-cd77234a><div class="VPDoc has-aside" data-v-cd77234a data-v-17e4eb14><div class="container" data-v-17e4eb14><div class="aside" data-v-17e4eb14><div class="aside-curtain" data-v-17e4eb14></div><div class="aside-container" data-v-17e4eb14><div class="aside-content" data-v-17e4eb14><div class="VPDocAside" data-v-17e4eb14 data-v-63807449><!--[--><!--]--><!--[--><!--]--><div class="VPDocAsideOutline has-outline" data-v-63807449 data-v-ecaee5a8><div class="content" data-v-ecaee5a8><div class="outline-marker" data-v-ecaee5a8></div><div class="outline-title" data-v-ecaee5a8>On this page</div><nav aria-labelledby="doc-outline-aria-label" data-v-ecaee5a8><span class="visually-hidden" id="doc-outline-aria-label" data-v-ecaee5a8> Table of Contents for current page </span><ul class="root" data-v-ecaee5a8><!--[--><li data-v-ecaee5a8><a class="outline-link" href="#介绍" data-v-ecaee5a8>介绍</a><!----></li><li data-v-ecaee5a8><a class="outline-link" href="#安装" data-v-ecaee5a8>安装</a><!----></li><li data-v-ecaee5a8><a class="outline-link" href="#使用" data-v-ecaee5a8>使用</a><!----></li><!--]--></ul></nav></div></div><!--[--><!--]--><div class="spacer" data-v-63807449></div><!--[--><!--]--><!----><!--[--><!--]--><!--[--><!--]--></div></div></div></div><div class="content" data-v-17e4eb14><div class="content-container" data-v-17e4eb14><!--[--><!--]--><main class="main" data-v-17e4eb14><div style="position:relative;" class="vp-doc _doc_cli" data-v-17e4eb14><div><h2 id="介绍" tabindex="-1">介绍 <a class="header-anchor" href="#介绍" aria-hidden="true">#</a></h2><p>xs具有创建项目脚手架、快速生成store、页面、request等的全功能命令行工具, 基于commander实现。参考git命令行实现，[]表示可选的参数，&lt;&gt;表示必填参数。选项支持缩写的形式，所有缩写的选型均是大写。</p><h2 id="安装" tabindex="-1">安装 <a class="header-anchor" href="#安装" aria-hidden="true">#</a></h2><p>npm i -g @xunserver/cli</p><h2 id="使用" tabindex="-1">使用 <a class="header-anchor" href="#使用" aria-hidden="true">#</a></h2><h3 id="init" tabindex="-1">init <a class="header-anchor" href="#init" aria-hidden="true">#</a></h3><p>初始化项目，默认支持git仓库和npm仓库下载，详情参考命令行提示，-h 或者--help。git仓库默认从xunserver/xunserver-template-xxx 下载,npm 仓库从xunserver-template 下载。</p><h3 id="add" tabindex="-1">add <a class="header-anchor" href="#add" aria-hidden="true">#</a></h3><h4 id="lint" tabindex="-1">lint <a class="header-anchor" href="#lint" aria-hidden="true">#</a></h4><p>通过问询的方式添加项目lint规则，使用会在项目中添加响应的lint规则， 包括eslint、stylelint、prettier、commitlint和editorconfig规则。</p><h3 id="build" tabindex="-1">build <a class="header-anchor" href="#build" aria-hidden="true">#</a></h3><p>支持配置文件配置打包细节</p><h3 id="pub" tabindex="-1">pub <a class="header-anchor" href="#pub" aria-hidden="true">#</a></h3><p>通过获取当前目录下的配置文件</p><h3 id="配置文件详解" tabindex="-1">配置文件详解 <a class="header-anchor" href="#配置文件详解" aria-hidden="true">#</a></h3><p>仅支持cjs格式的配置文件，.xsrc.js 或者xs.config.js。 或者通过--config filename 指定配置文件</p><div class="language-ts"><button class="copy"></button><span class="lang">ts</span><pre><code><span class="line"><span style="color:#C792EA;">interface</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">BuildFunction</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">{</span></span>
<span class="line"><span style="color:#A6ACCD;">  </span><span style="color:#89DDFF;">(</span><span style="color:#A6ACCD;">config</span><span style="color:#89DDFF;">:</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">XsConfig</span><span style="color:#89DDFF;">):</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">any</span><span style="color:#89DDFF;">;</span></span>
<span class="line"><span style="color:#89DDFF;">}</span></span>
<span class="line"></span>
<span class="line"><span style="color:#C792EA;">interface</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">XsConfig</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">{</span></span>
<span class="line"><span style="color:#A6ACCD;">  </span><span style="color:#F07178;">type</span><span style="color:#89DDFF;">:</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">&#39;</span><span style="color:#C3E88D;">vue</span><span style="color:#89DDFF;">&#39;</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">|</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">&#39;</span><span style="color:#C3E88D;">vue2</span><span style="color:#89DDFF;">&#39;</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">|</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">&#39;</span><span style="color:#C3E88D;">react</span><span style="color:#89DDFF;">&#39;</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">|</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">&#39;</span><span style="color:#C3E88D;">common</span><span style="color:#89DDFF;">&#39;</span><span style="color:#89DDFF;">;</span><span style="color:#A6ACCD;">  </span></span>
<span class="line"><span style="color:#A6ACCD;">  </span><span style="color:#F07178;">typescript</span><span style="color:#89DDFF;">:</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">boolean</span><span style="color:#89DDFF;">;</span><span style="color:#A6ACCD;"> </span><span style="color:#676E95;">// default true</span></span>
<span class="line"><span style="color:#A6ACCD;">  </span><span style="color:#F07178;">build</span><span style="color:#89DDFF;">:</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">Boolean</span><span style="color:#A6ACCD;">  </span><span style="color:#89DDFF;">|</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">BuildFunction</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">|</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">{</span><span style="color:#A6ACCD;">  </span><span style="color:#676E95;">// 默认是webpack配置，会和默认配置合并，支持函数自定义打包和rollup打包</span></span>
<span class="line"><span style="color:#A6ACCD;">    [</span><span style="color:#A6ACCD;">key</span><span style="color:#89DDFF;">:</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">string</span><span style="color:#A6ACCD;">]</span><span style="color:#89DDFF;">:</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">any</span></span>
<span class="line"><span style="color:#A6ACCD;">  </span><span style="color:#89DDFF;">},</span></span>
<span class="line"><span style="color:#A6ACCD;">  </span><span style="color:#F07178;">pub</span><span style="color:#89DDFF;">:</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">boolean</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">|</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">Function</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">|</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">{</span></span>
<span class="line"><span style="color:#A6ACCD;">    </span><span style="color:#F07178;">git</span><span style="color:#89DDFF;">:</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">boolean</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">|</span><span style="color:#A6ACCD;">  </span><span style="color:#89DDFF;">{</span><span style="color:#A6ACCD;">  </span><span style="color:#676E95;">// 是否支持自动提交git</span></span>
<span class="line"><span style="color:#A6ACCD;">      </span><span style="color:#F07178;">origin</span><span style="color:#89DDFF;">?:</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">string</span><span style="color:#89DDFF;">;</span><span style="color:#A6ACCD;">  </span><span style="color:#676E95;">// 需要上传的仓库名，默认origin</span></span>
<span class="line"><span style="color:#A6ACCD;">      </span><span style="color:#F07178;">branch</span><span style="color:#89DDFF;">?:</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">string</span><span style="color:#89DDFF;">;</span><span style="color:#A6ACCD;">  </span><span style="color:#676E95;">// 默认 main</span></span>
<span class="line"><span style="color:#A6ACCD;">      </span><span style="color:#F07178;">commitMsg</span><span style="color:#89DDFF;">?:</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">string</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">|</span><span style="color:#A6ACCD;"> (</span><span style="color:#89DDFF;">(</span><span style="color:#A6ACCD;">package</span><span style="color:#89DDFF;">:</span><span style="color:#FFCB6B;">any</span><span style="color:#89DDFF;">)</span><span style="color:#A6ACCD;"> </span><span style="color:#C792EA;">=&gt;</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">string</span><span style="color:#A6ACCD;">)  </span><span style="color:#676E95;">// 默认当前 `${packageJson.name} pub ${packageJson.version} + 1`</span></span>
<span class="line"><span style="color:#A6ACCD;">    </span><span style="color:#89DDFF;">},</span></span>
<span class="line"><span style="color:#A6ACCD;">    </span><span style="color:#F07178;">npmToken</span><span style="color:#89DDFF;">?:</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">string</span><span style="color:#A6ACCD;">  </span><span style="color:#676E95;">// npm 发布秘钥，如果未配置，从APP_NPM_TOKEN获取</span></span>
<span class="line"><span style="color:#A6ACCD;">  </span><span style="color:#89DDFF;">},</span></span>
<span class="line"><span style="color:#A6ACCD;">  </span><span style="color:#F07178;">server</span><span style="color:#89DDFF;">:</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">{</span><span style="color:#A6ACCD;">  </span><span style="color:#676E95;">// 如果type是</span></span>
<span class="line"><span style="color:#A6ACCD;">    [</span><span style="color:#A6ACCD;">key</span><span style="color:#89DDFF;">:</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">string</span><span style="color:#A6ACCD;">]</span><span style="color:#89DDFF;">:</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">any</span></span>
<span class="line"><span style="color:#A6ACCD;">  </span><span style="color:#89DDFF;">}</span></span>
<span class="line"><span style="color:#89DDFF;">}</span></span>
<span class="line"></span></code></pre></div></div></div></main><!--[--><!--]--><!----><!--[--><!--]--></div></div></div></div></div><!----><!--[--><!--]--></div></div>
    <script>__VP_HASH_MAP__ = JSON.parse("{\"babel-config.md\":\"9f1c9fe8\",\"cli.md\":\"7d1dba15\",\"commitlint-config.md\":\"320bb398\",\"eslint-config.md\":\"a31982cb\",\"index.md\":\"033c65fb\",\"postcss-config.md\":\"f7576e83\",\"prettier-config.md\":\"a0029cfc\",\"style.md\":\"d1e7dc43\",\"stylelint-config.md\":\"94c7b4e8\",\"vscode-config.md\":\"1973b3ff\",\"vui.md\":\"f4524f5b\"}")</script>
    <script type="module" async src="/doc/assets/app.037114a6.js"></script>
    
  </body>
</html>